package com.deram.ctin.serv.third.prop;

import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/22
 */
@Component
@ConfigurationProperties(prefix="sms")
public class SmsProp {

    private String account; // 帐号
    private String pswd; // 密码
    private String singleUrl = "http://sms.253.com/msg/send"; // 单条短信url
    private Boolean whiteListEnabled = false; // 是否启用白名单模式
    private List<String> whiteList = Lists.newArrayList(); // 号码白名单
    private String autograph; // 签名
    private Integer contentMaxLength = 70; // 短信内容长度

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPswd() {
        return pswd;
    }

    public void setPswd(String pswd) {
        this.pswd = pswd;
    }

    public String getSingleUrl() {
        return singleUrl;
    }

    public void setSingleUrl(String singleUrl) {
        this.singleUrl = singleUrl;
    }

    public Boolean getWhiteListEnabled() {
        return whiteListEnabled;
    }

    public void setWhiteListEnabled(Boolean whiteListEnabled) {
        this.whiteListEnabled = whiteListEnabled;
    }

    public List<String> getWhiteList() {
        return whiteList;
    }

    public void setWhiteList(List<String> whiteList) {
        this.whiteList = whiteList;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public Integer getContentMaxLength() {
        return contentMaxLength;
    }

    public void setContentMaxLength(Integer contentMaxLength) {
        this.contentMaxLength = contentMaxLength;
    }
}
